package com.hl.card.modular.pack.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hl.card.common.util.ResponseData;
import com.hl.card.modular.pack.service.ConfigService;
import com.hl.card.common.persistence.model.Config;

@RestController
@RequestMapping("/api/config")
public class ConfigController {
 
	@Autowired
	private ConfigService configService;
	@Autowired
	private ResponseData responseData; 
	
	@RequestMapping("/getConfigList")
	public Object  getConfigList()
	{
		List<Config> list= configService.getConfig();
		responseData.setData(list);
		responseData.setMsg("操作成功");
		responseData.setStatus("1");
		return responseData;
	}
}
